-- GENERATED SPELL FOR [Scarlet Scryer] --


function spell0_4293(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4293', 3000, 1)
end

function spell1_4293(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(1090,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4293', 31500, 1)
end

function Sorts_4293(pUnit, Event)
local choix_sorts_4293 = math.random(0, 1)
if choix_sorts_4293 == 0 then
pUnit:RegisterEvent('spell0_4293', 1, 1)
end
if choix_sorts_4293 == 1 then
pUnit:RegisterEvent('spell1_4293', 1, 1)
end
end

function mob4293_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4293', math.random(1500, 3000), 1)
end

function mob4293_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4293_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4293_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4293, 1, 'mob4293_Action')
RegisterUnitEvent(4293, 2, 'mob4293_Leave')
RegisterUnitEvent(4293, 3, 'mob4293_Kill')
RegisterUnitEvent(4293, 4, 'mob4293_Die')
